# unittest 的基本使用
import unittest
class testCaseA(unittest.TestCase):
    @classmethod
    def setUpClass(cls):
        print("setUpClass全部场景执行前被调用\n")

    def setUp(self):
        print("==setUp每个场景执行前会被调用==")
    def tearDown(self):
        print("==tearDown每个场景结束后会被调用==")

    @classmethod
    def tearDownClass(cls):
        print("tearDownClass全部场景执行结束被调用\n")

    def test_sence_A(self):
        print("test_sence_A")

    def test_sence_B(self):
        print("test_sence_B")

    def test_sence_a(self):
        print("test_sence_a")

    def test_sence_b(self):
        print("test_sence_b")

    def test_sence_1(self):
        print("test_sence_1")

    def test_sence_2(self):
        print("test_sence_2")

    def case_0(self):
        print("用例名不是以test开头，不会被执行")

if __name__ == "__main__":
        unittest.main()
